package org.taikonaut;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.taikonaut.test.Test;

/**
 *
 * Taikonaut Project v0
 *
 * 18/11/2012
 * 
 * Description: Main class of the project
 * 
 * @author Taikonaut
 * 
 */
public class Main {
	
	
	/**
	 * Description: Main method which starts up the process
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Taikonaut project: Ignition!");
		System.out.println("****************************");
		
		//Start chronometer
		long startTime = System.currentTimeMillis();
		
		//Configure logger
		PropertyConfigurator.configure("./config/log4j.properties");		
		Logger log = Logger.getLogger(org.taikonaut.Main.class.getName());
		
		
		
		log.trace("trace");
		log.debug("debug");
		log.info("Info");
		log.warn("warn");
		log.error("error");		
		log.fatal("fatal");
				
		Test test = new Test();
		
		//Stop chronometer
		long stopTime = System.currentTimeMillis();
	    long elapsedTime = stopTime - startTime;
	    
		
		System.out.println("******************");
		System.out.println("Ready for landing!"); 
		System.out.println("Trip time: ");
		System.out.println(elapsedTime+" milliseconds");
	    System.out.println(elapsedTime/1000 +" seconds");

	}
	
	

}
